﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    public class DBEntityCustomerCallBack : DBEntityBase
    {
        /// <summary>
        /// 会员回访信息表
        /// </summary>
        /// <returns></returns>
        public override string GetTableName()
        {
            return "CUSTOMERCALLBACK";
        }

        public DBEntityCustomerCallBack()
            : base()
        {
        }
        public DBEntityCustomerCallBack(DataRow drRow)
        {
            this.CUSTOMERCALLBACKID = Convert.ToInt32(drRow[DBEntityCustomerCallBack.FieldName.CUSTOMERCALLBACKID]);
            this.CUSTOMERID = Convert.ToInt32(drRow[DBEntityCustomerCallBack.FieldName.CUSTOMERID]);
            this.CALLBACKDATE = Convert.ToDateTime(drRow[DBEntityCustomerCallBack.FieldName.CALLBACKDATE]);
            this.EMPLOYEEID = Convert.ToInt32(drRow[DBEntityCustomerCallBack.FieldName.EMPLOYEEID]);
            this.CALLBACKCONTENT = drRow[DBEntityCustomerCallBack.FieldName.CALLBACKCONTENT].ToString();
        }

        /// <summary>
        /// 会员回访信息ID
        /// </summary>
        public int CUSTOMERCALLBACKID { get; set; }
        /// <summary>
        /// 会员ID
        /// </summary>
        public int CUSTOMERID { get; set; }
        /// <summary>
        /// 回访日期
        /// </summary>
        public DateTime CALLBACKDATE { get; set; }
        /// <summary>
        /// 经办人
        /// </summary>
        public int EMPLOYEEID { get; set; }
        /// <summary>
        /// 回访内容
        /// </summary>
        public string CALLBACKCONTENT { get; set; }
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 会员回访信息ID
            /// </summary>
            public const string CUSTOMERCALLBACKID = "CUSTOMERCALLBACKID";
            /// <summary>
            /// 会员ID
            /// </summary>
            public const string CUSTOMERID = "CUSTOMERID";
            /// <summary>
            /// 回访日期
            /// </summary>
            public const string CALLBACKDATE = "CALLBACKDATE";
            /// <summary>
            /// 经办人
            /// </summary>
            public const string EMPLOYEEID = "EMPLOYEEID";
            /// <summary>
            /// 回访内容
            /// </summary>
            public const string CALLBACKCONTENT = "CALLBACKCONTENT";
        }
    }
}
